package com.qys.livesMall.shop.service;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.shop.modal.query.ShopStatisticsQuery;
import com.qys.livesMall.shop.modal.entity.H2ShopStatisticsInfo;
import com.qys.livesMall.shop.modal.query.QueryShopStatisticsInfo;
import com.qys.livesMall.shop.modal.vo.ShopStatisticsInfoVo;

import java.time.LocalDateTime;
import java.util.List;

public interface H2ShopStatisticsInfoService extends IService<H2ShopStatisticsInfo> {
    Page<ShopStatisticsInfoVo> listShopStatisticsInfo(ShopStatisticsQuery shopStatisticsQuery);
    H2ShopStatisticsInfo getByShopId(Long shopId);

    H2ShopStatisticsInfo getField(Long shopId,SFunction<H2ShopStatisticsInfo, Object>... functions );

    H2ShopStatisticsInfo getAllField(Long shopId);

    List<Long> query(QueryShopStatisticsInfo query);

    List<H2ShopStatisticsInfo> getByShopIds(List<Long> shopIds);

    void initData(Long shopId);
}
